.class public Lcom/estrongs/android/ui/view/ESVideoView;
.super Landroid/view/SurfaceView;
.source "ESVideoView.java"

# interfaces
.implements Landroid/widget/MediaController$MediaPlayerControl;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/view/ESVideoView$l;,
        Lcom/estrongs/android/ui/view/ESVideoView$j;,
        Lcom/estrongs/android/ui/view/ESVideoView$k;
    }
.end annotation


# instance fields
.field A:Landroid/media/MediaPlayer$OnPreparedListener;

.field private B:Landroid/media/MediaPlayer$OnCompletionListener;

.field private C:Landroid/media/MediaPlayer$OnSeekCompleteListener;

.field private D:Landroid/media/MediaPlayer$OnErrorListener;

.field private E:Landroid/media/MediaPlayer$OnBufferingUpdateListener;

.field F:Landroid/view/SurfaceHolder$Callback;

.field private a:Ljava/lang/String;

.field protected b:Landroid/net/Uri;

.field private c:I

.field private d:I

.field private e:I

.field private f:Landroid/view/SurfaceHolder;

.field private g:Landroid/media/MediaPlayer;

.field private h:I

.field private i:I

.field private j:I

.field private k:I

.field private l:Lcom/estrongs/android/pop/esclasses/f;

.field private m:Landroid/media/MediaPlayer$OnCompletionListener;

.field private n:Landroid/media/MediaPlayer$OnPreparedListener;

.field private o:I

.field private p:Landroid/media/MediaPlayer$OnErrorListener;

.field private q:I

.field private r:Z

.field private s:Z

.field private t:Z

.field private u:Landroid/content/Context;

.field private v:Z

.field private w:Lcom/estrongs/android/ui/view/ESVideoView$l;

.field private x:Lcom/estrongs/android/ui/view/ESVideoView$k;

.field private y:F

.field z:Landroid/media/MediaPlayer$OnVideoSizeChangedListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 2

    .line 1
    invoke-direct {p0, p1}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;)V

    const-string v0, "VideoView"

    .line 2
    iput-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->a:Ljava/lang/String;

    const/4 v0, 0x0

    .line 3
    iput v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    .line 4
    iput v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    const/4 v1, 0x0

    .line 5
    iput-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->f:Landroid/view/SurfaceHolder;

    .line 6
    iput-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    .line 7
    iput-boolean v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->v:Z

    .line 8
    iput-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->w:Lcom/estrongs/android/ui/view/ESVideoView$l;

    .line 9
    iput-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->x:Lcom/estrongs/android/ui/view/ESVideoView$k;

    const/high16 v0, 0x3f800000    # 1.0f

    .line 10
    iput v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->y:F

    .line 11
    new-instance v0, Lcom/estrongs/android/ui/view/ESVideoView$c;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/view/ESVideoView$c;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->z:Landroid/media/MediaPlayer$OnVideoSizeChangedListener;

    .line 12
    new-instance v0, Lcom/estrongs/android/ui/view/ESVideoView$d;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/view/ESVideoView$d;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->A:Landroid/media/MediaPlayer$OnPreparedListener;

    .line 13
    new-instance v0, Lcom/estrongs/android/ui/view/ESVideoView$e;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/view/ESVideoView$e;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->B:Landroid/media/MediaPlayer$OnCompletionListener;

    .line 14
    new-instance v0, Lcom/estrongs/android/ui/view/ESVideoView$f;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/view/ESVideoView$f;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->C:Landroid/media/MediaPlayer$OnSeekCompleteListener;

    .line 15
    new-instance v0, Lcom/estrongs/android/ui/view/ESVideoView$g;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/view/ESVideoView$g;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->D:Landroid/media/MediaPlayer$OnErrorListener;

    .line 16
    new-instance v0, Lcom/estrongs/android/ui/view/ESVideoView$h;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/view/ESVideoView$h;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->E:Landroid/media/MediaPlayer$OnBufferingUpdateListener;

    .line 17
    new-instance v0, Lcom/estrongs/android/ui/view/ESVideoView$i;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/view/ESVideoView$i;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->F:Landroid/view/SurfaceHolder$Callback;

    .line 18
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->h()V

    .line 19
    iput-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->u:Landroid/content/Context;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 20
    invoke-direct {p0, p1, p2, v0}, Lcom/estrongs/android/ui/view/ESVideoView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 21
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->h()V

    .line 22
    iput-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->u:Landroid/content/Context;

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 23
    invoke-direct {p0, p1, p2, p3}, Landroid/view/SurfaceView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    const-string p2, "VideoView"

    .line 24
    iput-object p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->a:Ljava/lang/String;

    const/4 p2, 0x0

    .line 25
    iput p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    .line 26
    iput p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    const/4 p3, 0x0

    .line 27
    iput-object p3, p0, Lcom/estrongs/android/ui/view/ESVideoView;->f:Landroid/view/SurfaceHolder;

    .line 28
    iput-object p3, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    .line 29
    iput-boolean p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->v:Z

    .line 30
    iput-object p3, p0, Lcom/estrongs/android/ui/view/ESVideoView;->w:Lcom/estrongs/android/ui/view/ESVideoView$l;

    .line 31
    iput-object p3, p0, Lcom/estrongs/android/ui/view/ESVideoView;->x:Lcom/estrongs/android/ui/view/ESVideoView$k;

    const/high16 p2, 0x3f800000    # 1.0f

    .line 32
    iput p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->y:F

    .line 33
    new-instance p2, Lcom/estrongs/android/ui/view/ESVideoView$c;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/view/ESVideoView$c;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->z:Landroid/media/MediaPlayer$OnVideoSizeChangedListener;

    .line 34
    new-instance p2, Lcom/estrongs/android/ui/view/ESVideoView$d;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/view/ESVideoView$d;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->A:Landroid/media/MediaPlayer$OnPreparedListener;

    .line 35
    new-instance p2, Lcom/estrongs/android/ui/view/ESVideoView$e;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/view/ESVideoView$e;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->B:Landroid/media/MediaPlayer$OnCompletionListener;

    .line 36
    new-instance p2, Lcom/estrongs/android/ui/view/ESVideoView$f;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/view/ESVideoView$f;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->C:Landroid/media/MediaPlayer$OnSeekCompleteListener;

    .line 37
    new-instance p2, Lcom/estrongs/android/ui/view/ESVideoView$g;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/view/ESVideoView$g;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->D:Landroid/media/MediaPlayer$OnErrorListener;

    .line 38
    new-instance p2, Lcom/estrongs/android/ui/view/ESVideoView$h;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/view/ESVideoView$h;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->E:Landroid/media/MediaPlayer$OnBufferingUpdateListener;

    .line 39
    new-instance p2, Lcom/estrongs/android/ui/view/ESVideoView$i;

    invoke-direct {p2, p0}, Lcom/estrongs/android/ui/view/ESVideoView$i;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->F:Landroid/view/SurfaceHolder$Callback;

    .line 40
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->h()V

    .line 41
    iput-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->u:Landroid/content/Context;

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/ESVideoView;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->h:I

    return p0
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/ESVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->h:I

    return p1
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/ESVideoView;Landroid/view/SurfaceHolder;)Landroid/view/SurfaceHolder;
    .locals 0

    .line 4
    iput-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->f:Landroid/view/SurfaceHolder;

    return-object p1
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/ESVideoView;Lcom/estrongs/android/ui/view/ESVideoView$l;)Lcom/estrongs/android/ui/view/ESVideoView$l;
    .locals 0

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->w:Lcom/estrongs/android/ui/view/ESVideoView$l;

    return-object p1
.end method

.method static synthetic a(Lcom/estrongs/android/ui/view/ESVideoView;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->v:Z

    return p1
.end method

.method static synthetic b(Lcom/estrongs/android/ui/view/ESVideoView;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->i:I

    return p0
.end method

.method static synthetic b(Lcom/estrongs/android/ui/view/ESVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->j:I

    return p1
.end method

.method static synthetic b(Lcom/estrongs/android/ui/view/ESVideoView;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->r:Z

    return p1
.end method

.method static synthetic c(Lcom/estrongs/android/ui/view/ESVideoView;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->j:I

    return p0
.end method

.method static synthetic c(Lcom/estrongs/android/ui/view/ESVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->i:I

    return p1
.end method

.method static synthetic c(Lcom/estrongs/android/ui/view/ESVideoView;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->s:Z

    return p1
.end method

.method static synthetic d(Lcom/estrongs/android/ui/view/ESVideoView;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->k:I

    return p0
.end method

.method static synthetic d(Lcom/estrongs/android/ui/view/ESVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->k:I

    return p1
.end method

.method static synthetic d(Lcom/estrongs/android/ui/view/ESVideoView;Z)Z
    .locals 0

    .line 3
    iput-boolean p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->t:Z

    return p1
.end method

.method static synthetic e(Lcom/estrongs/android/ui/view/ESVideoView;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    return p0
.end method

.method static synthetic e(Lcom/estrongs/android/ui/view/ESVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    return p1
.end method

.method static synthetic f(Lcom/estrongs/android/ui/view/ESVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->o:I

    return p1
.end method

.method static synthetic f(Lcom/estrongs/android/ui/view/ESVideoView;)Landroid/media/MediaPlayer$OnCompletionListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->m:Landroid/media/MediaPlayer$OnCompletionListener;

    return-object p0
.end method

.method private f()V
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    if-eqz v0, :cond_0

    .line 4
    invoke-virtual {v0, p0}, Lcom/estrongs/android/pop/esclasses/f;->setMediaPlayer(Landroid/widget/MediaController$MediaPlayerControl;)V

    :cond_0
    return-void
.end method

.method static synthetic g(Lcom/estrongs/android/ui/view/ESVideoView;I)I
    .locals 0

    .line 2
    iput p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    return p1
.end method

.method static synthetic g(Lcom/estrongs/android/ui/view/ESVideoView;)Lcom/estrongs/android/ui/view/ESVideoView$k;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->x:Lcom/estrongs/android/ui/view/ESVideoView$k;

    return-object p0
.end method

.method private g()V
    .locals 1

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->w:Lcom/estrongs/android/ui/view/ESVideoView$l;

    if-nez v0, :cond_0

    .line 4
    new-instance v0, Lcom/estrongs/android/ui/view/ESVideoView$l;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/view/ESVideoView$l;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->w:Lcom/estrongs/android/ui/view/ESVideoView$l;

    .line 5
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    :cond_0
    return-void
.end method

.method static synthetic h(Lcom/estrongs/android/ui/view/ESVideoView;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->a:Ljava/lang/String;

    return-object p0
.end method

.method private h()V
    .locals 3

    const/4 v0, 0x0

    .line 2
    iput v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->h:I

    .line 3
    iput v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->i:I

    .line 4
    invoke-virtual {p0}, Landroid/view/SurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v1

    iget-object v2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->F:Landroid/view/SurfaceHolder$Callback;

    invoke-interface {v1, v2}, Landroid/view/SurfaceHolder;->addCallback(Landroid/view/SurfaceHolder$Callback;)V

    .line 5
    invoke-virtual {p0}, Landroid/view/SurfaceView;->getHolder()Landroid/view/SurfaceHolder;

    move-result-object v1

    const/4 v2, 0x3

    invoke-interface {v1, v2}, Landroid/view/SurfaceHolder;->setType(I)V

    const/4 v1, 0x1

    .line 6
    invoke-virtual {p0, v1}, Landroid/view/SurfaceView;->setFocusable(Z)V

    .line 7
    invoke-virtual {p0, v1}, Landroid/view/SurfaceView;->setFocusableInTouchMode(Z)V

    .line 8
    invoke-virtual {p0}, Landroid/view/SurfaceView;->requestFocus()Z

    .line 9
    iput v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    .line 10
    iput v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    const/high16 v0, 0x3f800000    # 1.0f

    .line 11
    iput v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->y:F

    return-void
.end method

.method static synthetic i(Lcom/estrongs/android/ui/view/ESVideoView;)Landroid/media/MediaPlayer$OnErrorListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->p:Landroid/media/MediaPlayer$OnErrorListener;

    return-object p0
.end method

.method private i()V
    .locals 8

    const-string v0, "Unable to open content: "

    .line 2
    iget-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->b:Landroid/net/Uri;

    if-eqz v1, :cond_2

    iget-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->f:Landroid/view/SurfaceHolder;

    if-nez v1, :cond_0

    goto/16 :goto_0

    .line 3
    :cond_0
    new-instance v1, Landroid/content/Intent;

    const-string v2, "com.android.music.musicservicecommand"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v2, "command"

    const-string v3, "pause"

    .line 4
    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 5
    iget-object v2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->u:Landroid/content/Context;

    invoke-virtual {v2, v1}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    .line 6
    iget-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    if-eqz v1, :cond_1

    return-void

    .line 7
    :cond_1
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->g()V

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x1

    const/4 v4, -0x1

    .line 8
    :try_start_0
    new-instance v5, Landroid/media/MediaPlayer;

    invoke-direct {v5}, Landroid/media/MediaPlayer;-><init>()V

    iput-object v5, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    .line 9
    iget-object v6, p0, Lcom/estrongs/android/ui/view/ESVideoView;->A:Landroid/media/MediaPlayer$OnPreparedListener;

    invoke-virtual {v5, v6}, Landroid/media/MediaPlayer;->setOnPreparedListener(Landroid/media/MediaPlayer$OnPreparedListener;)V

    .line 10
    iget-object v5, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    iget-object v6, p0, Lcom/estrongs/android/ui/view/ESVideoView;->z:Landroid/media/MediaPlayer$OnVideoSizeChangedListener;

    invoke-virtual {v5, v6}, Landroid/media/MediaPlayer;->setOnVideoSizeChangedListener(Landroid/media/MediaPlayer$OnVideoSizeChangedListener;)V

    .line 11
    iput v4, p0, Lcom/estrongs/android/ui/view/ESVideoView;->c:I

    .line 12
    iget-object v5, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    iget-object v6, p0, Lcom/estrongs/android/ui/view/ESVideoView;->B:Landroid/media/MediaPlayer$OnCompletionListener;

    invoke-virtual {v5, v6}, Landroid/media/MediaPlayer;->setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V

    .line 13
    iget-object v5, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    iget-object v6, p0, Lcom/estrongs/android/ui/view/ESVideoView;->D:Landroid/media/MediaPlayer$OnErrorListener;

    invoke-virtual {v5, v6}, Landroid/media/MediaPlayer;->setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V

    .line 14
    iget-object v5, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    iget-object v6, p0, Lcom/estrongs/android/ui/view/ESVideoView;->E:Landroid/media/MediaPlayer$OnBufferingUpdateListener;

    invoke-virtual {v5, v6}, Landroid/media/MediaPlayer;->setOnBufferingUpdateListener(Landroid/media/MediaPlayer$OnBufferingUpdateListener;)V

    .line 15
    iput v2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->o:I

    .line 16
    iget-object v5, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    iget-object v6, p0, Lcom/estrongs/android/ui/view/ESVideoView;->u:Landroid/content/Context;

    iget-object v7, p0, Lcom/estrongs/android/ui/view/ESVideoView;->b:Landroid/net/Uri;

    invoke-virtual {v5, v6, v7, v1}, Landroid/media/MediaPlayer;->setDataSource(Landroid/content/Context;Landroid/net/Uri;Ljava/util/Map;)V

    .line 17
    iget-object v5, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    iget-object v6, p0, Lcom/estrongs/android/ui/view/ESVideoView;->f:Landroid/view/SurfaceHolder;

    invoke-virtual {v5, v6}, Landroid/media/MediaPlayer;->setDisplay(Landroid/view/SurfaceHolder;)V

    .line 18
    iget-object v5, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    const/4 v6, 0x3

    invoke-virtual {v5, v6}, Landroid/media/MediaPlayer;->setAudioStreamType(I)V

    .line 19
    iget-object v5, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {v5, v3}, Landroid/media/MediaPlayer;->setScreenOnWhilePlaying(Z)V

    .line 20
    iget-object v5, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {v5}, Landroid/media/MediaPlayer;->prepareAsync()V

    .line 21
    iget-object v5, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    iget-object v6, p0, Lcom/estrongs/android/ui/view/ESVideoView;->C:Landroid/media/MediaPlayer$OnSeekCompleteListener;

    invoke-virtual {v5, v6}, Landroid/media/MediaPlayer;->setOnSeekCompleteListener(Landroid/media/MediaPlayer$OnSeekCompleteListener;)V

    .line 22
    iput v3, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    .line 23
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->f()V

    .line 24
    iget v5, p0, Lcom/estrongs/android/ui/view/ESVideoView;->y:F

    invoke-virtual {p0, v5}, Lcom/estrongs/android/ui/view/ESVideoView;->setSpeed(F)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
    .catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Ljava/lang/IllegalStateException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-void

    :catch_0
    move-exception v5

    .line 25
    iget-object v6, p0, Lcom/estrongs/android/ui/view/ESVideoView;->a:Ljava/lang/String;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->b:Landroid/net/Uri;

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v6, v0, v5}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 26
    iput v4, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    .line 27
    iput v4, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    .line 28
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->D:Landroid/media/MediaPlayer$OnErrorListener;

    iget-object v4, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-interface {v0, v4, v3, v2}, Landroid/media/MediaPlayer$OnErrorListener;->onError(Landroid/media/MediaPlayer;II)Z

    .line 29
    iput-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    return-void

    :catch_1
    move-exception v5

    .line 30
    iget-object v6, p0, Lcom/estrongs/android/ui/view/ESVideoView;->a:Ljava/lang/String;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->b:Landroid/net/Uri;

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v6, v0, v5}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 31
    iput v4, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    .line 32
    iput v4, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    .line 33
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->D:Landroid/media/MediaPlayer$OnErrorListener;

    iget-object v4, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-interface {v0, v4, v3, v2}, Landroid/media/MediaPlayer$OnErrorListener;->onError(Landroid/media/MediaPlayer;II)Z

    .line 34
    iput-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    return-void

    :catch_2
    move-exception v5

    .line 35
    iget-object v6, p0, Lcom/estrongs/android/ui/view/ESVideoView;->a:Ljava/lang/String;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->b:Landroid/net/Uri;

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v6, v0, v5}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 36
    iput v4, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    .line 37
    iput v4, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    .line 38
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->D:Landroid/media/MediaPlayer$OnErrorListener;

    iget-object v4, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-interface {v0, v4, v3, v2}, Landroid/media/MediaPlayer$OnErrorListener;->onError(Landroid/media/MediaPlayer;II)Z

    .line 39
    iput-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    return-void

    :catch_3
    move-exception v5

    .line 40
    iget-object v6, p0, Lcom/estrongs/android/ui/view/ESVideoView;->a:Ljava/lang/String;

    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->b:Landroid/net/Uri;

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v6, v0, v5}, Lcom/estrongs/android/util/n;->c(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V

    .line 41
    iput v4, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    .line 42
    iput v4, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    .line 43
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->D:Landroid/media/MediaPlayer$OnErrorListener;

    iget-object v4, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-interface {v0, v4, v3, v2}, Landroid/media/MediaPlayer$OnErrorListener;->onError(Landroid/media/MediaPlayer;II)Z

    .line 44
    iput-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    :cond_2
    :goto_0
    return-void
.end method

.method static synthetic j(Lcom/estrongs/android/ui/view/ESVideoView;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    return p0
.end method

.method private j()V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/esclasses/f;->c()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/esclasses/f;->a()V

    goto :goto_0

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/esclasses/f;->f()V

    :goto_0
    return-void
.end method

.method static synthetic k(Lcom/estrongs/android/ui/view/ESVideoView;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->i()V

    return-void
.end method

.method static synthetic l(Lcom/estrongs/android/ui/view/ESVideoView;)Lcom/estrongs/android/ui/view/ESVideoView$l;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->w:Lcom/estrongs/android/ui/view/ESVideoView$l;

    return-object p0
.end method

.method static synthetic m(Lcom/estrongs/android/ui/view/ESVideoView;)Landroid/media/MediaPlayer$OnPreparedListener;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->n:Landroid/media/MediaPlayer$OnPreparedListener;

    return-object p0
.end method

.method static synthetic n(Lcom/estrongs/android/ui/view/ESVideoView;)Landroid/media/MediaPlayer;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    return-object p0
.end method

.method static synthetic o(Lcom/estrongs/android/ui/view/ESVideoView;)Lcom/estrongs/android/pop/esclasses/f;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    return-object p0
.end method

.method static synthetic p(Lcom/estrongs/android/ui/view/ESVideoView;)I
    .locals 0

    .line 1
    iget p0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->q:I

    return p0
.end method


# virtual methods
.method public a(I)V
    .locals 1

    .line 23
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->a()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 24
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {v0, p1}, Landroid/media/MediaPlayer;->seekTo(I)V

    .line 25
    iget p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    const/4 v0, 0x3

    if-ne p1, v0, :cond_0

    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->isPlaying()Z

    move-result p1

    if-nez p1, :cond_0

    .line 26
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->start()V

    :cond_0
    const/4 p1, 0x0

    .line 27
    iput p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->q:I

    goto :goto_0

    .line 28
    :cond_1
    iput p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->q:I

    :goto_0
    return-void
.end method

.method public a(Landroid/net/Uri;Ljava/util/Map;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/net/Uri;",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 6
    iget-object p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->b:Landroid/net/Uri;

    if-eqz p2, :cond_0

    invoke-virtual {p2, p1}, Landroid/net/Uri;->equals(Ljava/lang/Object;)Z

    move-result p2

    if-nez p2, :cond_0

    const/4 p2, 0x1

    const/4 v0, 0x0

    .line 7
    invoke-virtual {p0, p2, v0}, Lcom/estrongs/android/ui/view/ESVideoView;->a(ZZ)V

    .line 8
    iput v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->q:I

    .line 9
    :cond_0
    iput-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->b:Landroid/net/Uri;

    .line 10
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->i()V

    .line 11
    invoke-virtual {p0}, Landroid/view/SurfaceView;->requestLayout()V

    .line 12
    invoke-virtual {p0}, Landroid/view/SurfaceView;->invalidate()V

    return-void
.end method

.method public a(Z)V
    .locals 1

    const/4 v0, 0x1

    .line 13
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/ui/view/ESVideoView;->a(ZZ)V

    return-void
.end method

.method public a(ZZ)V
    .locals 2

    .line 14
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_2

    const/4 v1, 0x0

    .line 15
    iput-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    if-eqz p2, :cond_0

    .line 16
    new-instance p2, Ljava/lang/Thread;

    new-instance v1, Lcom/estrongs/android/ui/view/ESVideoView$b;

    invoke-direct {v1, p0, v0}, Lcom/estrongs/android/ui/view/ESVideoView$b;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;Landroid/media/MediaPlayer;)V

    invoke-direct {p2, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 17
    invoke-virtual {p2}, Ljava/lang/Thread;->start()V

    goto :goto_0

    .line 18
    :cond_0
    invoke-virtual {v0}, Landroid/media/MediaPlayer;->reset()V

    .line 19
    invoke-virtual {v0}, Landroid/media/MediaPlayer;->release()V

    :goto_0
    const/4 p2, 0x0

    .line 20
    iput p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    if-eqz p1, :cond_1

    .line 21
    iput p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    .line 22
    :cond_1
    iput-boolean p2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->v:Z

    :cond_2
    return-void
.end method

.method public a()Z
    .locals 3

    .line 29
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    const/4 v2, -0x1

    if-eq v0, v2, :cond_0

    if-eqz v0, :cond_0

    if-eq v0, v1, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    return v1
.end method

.method public b()Z
    .locals 1

    .line 4
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->v:Z

    return v0
.end method

.method public c()V
    .locals 1

    const/4 v0, 0x1

    .line 4
    invoke-virtual {p0, v0, v0}, Lcom/estrongs/android/ui/view/ESVideoView;->a(ZZ)V

    .line 5
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->i()V

    return-void
.end method

.method public canPause()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->r:Z

    return v0
.end method

.method public canSeekBackward()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->s:Z

    return v0
.end method

.method public canSeekForward()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->t:Z

    return v0
.end method

.method public d()V
    .locals 0

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->i()V

    return-void
.end method

.method public e()V
    .locals 3

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    const/4 v1, 0x0

    .line 4
    iput-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    .line 5
    new-instance v1, Ljava/lang/Thread;

    new-instance v2, Lcom/estrongs/android/ui/view/ESVideoView$a;

    invoke-direct {v2, p0, v0}, Lcom/estrongs/android/ui/view/ESVideoView$a;-><init>(Lcom/estrongs/android/ui/view/ESVideoView;Landroid/media/MediaPlayer;)V

    invoke-direct {v1, v2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 6
    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    const/4 v0, 0x0

    .line 7
    iput v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    .line 8
    iput v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    .line 9
    iput-boolean v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->v:Z

    :cond_0
    return-void
.end method

.method public getAudioSessionId()I
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public getBufferPercentage()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_0

    .line 2
    iget v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->o:I

    return v0

    :cond_0
    const/4 v0, 0x0

    return v0
.end method

.method public getCurrentPosition()I
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->a()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 2
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->v:Z

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->w:Lcom/estrongs/android/ui/view/ESVideoView$l;

    iget v0, v0, Lcom/estrongs/android/ui/view/ESVideoView$l;->c:I

    return v0

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->getCurrentPosition()I

    move-result v0

    return v0

    :cond_1
    const/4 v0, 0x0

    return v0
.end method

.method public getDuration()I
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->a()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 2
    iget v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->c:I

    if-lez v0, :cond_0

    return v0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->getDuration()I

    move-result v0

    iput v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->c:I

    return v0

    :cond_1
    const/4 v0, -0x1

    .line 4
    iput v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->c:I

    return v0
.end method

.method public isPlaying()Z
    .locals 1

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 4

    const/4 v0, 0x0

    const/4 v1, 0x1

    const/4 v2, 0x4

    if-eq p1, v2, :cond_0

    const/16 v2, 0x18

    if-eq p1, v2, :cond_0

    const/16 v2, 0x19

    if-eq p1, v2, :cond_0

    const/16 v2, 0xa4

    if-eq p1, v2, :cond_0

    const/16 v2, 0x52

    if-eq p1, v2, :cond_0

    const/4 v2, 0x5

    if-eq p1, v2, :cond_0

    const/4 v2, 0x6

    if-eq p1, v2, :cond_0

    const/4 v2, 0x1

    goto :goto_0

    :cond_0
    const/4 v2, 0x0

    .line 1
    :goto_0
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->a()Z

    move-result v3

    if-eqz v3, :cond_f

    if-eqz v2, :cond_f

    iget-object v2, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    if-eqz v2, :cond_f

    const/16 v2, 0x4f

    if-eq p1, v2, :cond_d

    const/16 v2, 0x55

    if-eq p1, v2, :cond_d

    const/16 v2, 0x17

    if-eq p1, v2, :cond_d

    const/16 v2, 0x42

    if-ne p1, v2, :cond_1

    goto/16 :goto_5

    :cond_1
    const/16 v2, 0x7e

    if-ne p1, v2, :cond_3

    .line 2
    iget-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result p1

    if-nez p1, :cond_2

    .line 3
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->start()V

    .line 4
    iget-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/esclasses/f;->a()V

    :cond_2
    return v1

    :cond_3
    const/16 v2, 0x56

    if-eq p1, v2, :cond_b

    const/16 v2, 0x7f

    if-ne p1, v2, :cond_4

    goto :goto_4

    :cond_4
    const/16 v1, 0x15

    if-eq p1, v1, :cond_9

    const/16 v1, 0x111

    if-eq p1, v1, :cond_9

    const/16 v1, 0x113

    if-ne p1, v1, :cond_5

    goto :goto_2

    :cond_5
    const/16 v0, 0x16

    if-eq p1, v0, :cond_7

    const/16 v0, 0x110

    if-eq p1, v0, :cond_7

    const/16 v0, 0x112

    if-ne p1, v0, :cond_6

    goto :goto_1

    .line 5
    :cond_6
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->j()V

    goto :goto_7

    .line 6
    :cond_7
    :goto_1
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    if-eqz v0, :cond_f

    .line 7
    invoke-virtual {v0}, Landroid/media/MediaPlayer;->getCurrentPosition()I

    move-result v0

    add-int/lit16 v0, v0, 0x1388

    .line 8
    iget-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->getDuration()I

    move-result v1

    if-lt v0, v1, :cond_8

    add-int/lit16 v0, v1, -0x7d0

    .line 9
    :cond_8
    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/view/ESVideoView;->a(I)V

    goto :goto_7

    .line 10
    :cond_9
    :goto_2
    iget-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    if-eqz v1, :cond_f

    .line 11
    invoke-virtual {v1}, Landroid/media/MediaPlayer;->getCurrentPosition()I

    move-result v1

    add-int/lit16 v1, v1, -0x1388

    if-gez v1, :cond_a

    goto :goto_3

    :cond_a
    move v0, v1

    .line 12
    :goto_3
    invoke-virtual {p0, v0}, Lcom/estrongs/android/ui/view/ESVideoView;->a(I)V

    goto :goto_7

    .line 13
    :cond_b
    :goto_4
    iget-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result p1

    if-eqz p1, :cond_c

    .line 14
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->pause()V

    .line 15
    iget-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/esclasses/f;->f()V

    :cond_c
    return v1

    .line 16
    :cond_d
    :goto_5
    iget-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {p1}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result p1

    if-eqz p1, :cond_e

    .line 17
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->pause()V

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/esclasses/f;->f()V

    goto :goto_6

    .line 19
    :cond_e
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->start()V

    .line 20
    iget-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/esclasses/f;->a()V

    :goto_6
    return v1

    .line 21
    :cond_f
    :goto_7
    invoke-super {p0, p1, p2}, Landroid/view/SurfaceView;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result p1

    return p1
.end method

.method protected onMeasure(II)V
    .locals 4

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->h:I

    invoke-static {v0, p1}, Landroid/view/SurfaceView;->getDefaultSize(II)I

    move-result p1

    .line 2
    iget v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->i:I

    invoke-static {v0, p2}, Landroid/view/SurfaceView;->getDefaultSize(II)I

    move-result p2

    .line 3
    iget v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->h:I

    if-lez v0, :cond_1

    iget v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->i:I

    if-lez v1, :cond_1

    mul-int v2, v0, p2

    mul-int v3, p1, v1

    if-le v2, v3, :cond_0

    mul-int v1, v1, p1

    .line 4
    div-int p2, v1, v0

    goto :goto_0

    :cond_0
    mul-int v2, v0, p2

    mul-int v3, p1, v1

    if-ge v2, v3, :cond_1

    mul-int v0, v0, p2

    .line 5
    div-int p1, v0, v1

    .line 6
    :cond_1
    :goto_0
    invoke-virtual {p0, p1, p2}, Landroid/view/SurfaceView;->setMeasuredDimension(II)V

    return-void
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 0

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->a()Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    if-eqz p1, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->j()V

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method public onTrackballEvent(Landroid/view/MotionEvent;)Z
    .locals 0

    .line 1
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->a()Z

    move-result p1

    if-eqz p1, :cond_0

    iget-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    if-eqz p1, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->j()V

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method public pause()V
    .locals 2

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->v:Z

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->a()Z

    move-result v0

    const/4 v1, 0x4

    if-eqz v0, :cond_1

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->isPlaying()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->pause()V

    .line 5
    iput v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    if-eqz v0, :cond_1

    .line 7
    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/esclasses/f;->setPlayState(I)V

    .line 8
    :cond_1
    iput v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    return-void
.end method

.method public seekTo(I)V
    .locals 1

    if-gez p1, :cond_0

    const/4 p1, 0x0

    .line 1
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->a()Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->v:Z

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->x:Lcom/estrongs/android/ui/view/ESVideoView$k;

    if-eqz v0, :cond_1

    .line 4
    invoke-interface {v0}, Lcom/estrongs/android/ui/view/ESVideoView$k;->b()V

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->w:Lcom/estrongs/android/ui/view/ESVideoView$l;

    if-eqz v0, :cond_2

    .line 6
    invoke-virtual {v0, p1}, Lcom/estrongs/android/ui/view/ESVideoView$l;->a(I)V

    :cond_2
    return-void
.end method

.method public setMediaController(Lcom/estrongs/android/pop/esclasses/f;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {v0}, Lcom/estrongs/android/pop/esclasses/f;->a()V

    .line 3
    :cond_0
    iput-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->f()V

    return-void
.end method

.method public setOnCompletionListener(Landroid/media/MediaPlayer$OnCompletionListener;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->m:Landroid/media/MediaPlayer$OnCompletionListener;

    return-void
.end method

.method public setOnDrawListener(Lcom/estrongs/android/ui/view/ESVideoView$j;)V
    .locals 0

    return-void
.end method

.method public setOnErrorListener(Landroid/media/MediaPlayer$OnErrorListener;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->p:Landroid/media/MediaPlayer$OnErrorListener;

    return-void
.end method

.method public setOnPreparedListener(Landroid/media/MediaPlayer$OnPreparedListener;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->n:Landroid/media/MediaPlayer$OnPreparedListener;

    return-void
.end method

.method public setSeekListener(Lcom/estrongs/android/ui/view/ESVideoView$k;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->x:Lcom/estrongs/android/ui/view/ESVideoView$k;

    return-void
.end method

.method public setSpeed(F)V
    .locals 2

    .line 1
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v1, 0x17

    if-lt v0, v1, :cond_0

    .line 2
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    iget-object v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {v1}, Landroid/media/MediaPlayer;->getPlaybackParams()Landroid/media/PlaybackParams;

    move-result-object v1

    invoke-virtual {v1, p1}, Landroid/media/PlaybackParams;->setSpeed(F)Landroid/media/PlaybackParams;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/media/MediaPlayer;->setPlaybackParams(Landroid/media/PlaybackParams;)V

    .line 3
    iput p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->y:F

    .line 4
    iget p1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    .line 5
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->pause()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_0
    return-void
.end method

.method public setVideoPath(Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/view/ESVideoView;->setVideoURI(Landroid/net/Uri;)V

    return-void
.end method

.method public setVideoURI(Landroid/net/Uri;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-virtual {p0, p1, v0}, Lcom/estrongs/android/ui/view/ESVideoView;->a(Landroid/net/Uri;Ljava/util/Map;)V

    return-void
.end method

.method public start()V
    .locals 2

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->v:Z

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/android/ui/view/ESVideoView;->a()Z

    move-result v0

    const/4 v1, 0x3

    if-eqz v0, :cond_1

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->g:Landroid/media/MediaPlayer;

    invoke-virtual {v0}, Landroid/media/MediaPlayer;->start()V

    .line 4
    iput v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    .line 5
    :cond_1
    iput v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->e:I

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/ui/view/ESVideoView;->l:Lcom/estrongs/android/pop/esclasses/f;

    if-eqz v0, :cond_2

    .line 7
    iget v1, p0, Lcom/estrongs/android/ui/view/ESVideoView;->d:I

    invoke-virtual {v0, v1}, Lcom/estrongs/android/pop/esclasses/f;->setPlayState(I)V

    :cond_2
    return-void
.end method
